package com.b2b.mall.nacos.consumer.provider.web;

import com.b2b.mall.nacos.consumer.provider.feign.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("consumer")
@RestController
public class ConsumerController {

    @Autowired
    ProviderFeign providerFeign;


    @GetMapping("hello")
    public String hello() {
        return providerFeign.hello();
    }

}
